package org.example.dao.Impl;

import org.example.dao.ObjDao;
import org.springframework.stereotype.Component;

@Component
public class ObjDaoImpl implements ObjDao {

    @Override
    public void HelloUserDao() {
        System.out.println("HelloUserDao");
    }

    @Override
    public boolean login(String uname,String pwd) {

        if (uname.equals("admin")&&pwd.equals("123456")){
            return false;
        }else {
            return true;
        }

    }
}
